-
Notifications
You must be signed in to change notification settings - Fork 2.4k
stake-pool-js: export the StakePoolLayout #7324
stake-pool-js: export the StakePoolLayout #7324
Conversation
buffalojoec
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wfm. Any opposition to making the layouts public here @joncinque ?
stake-pool/js/src/index.ts
Outdated
| export type { StakePool, AccountType, ValidatorList, ValidatorStakeInfo } from './layouts'; | ||
| export { STAKE_POOL_PROGRAM_ID } from './constants'; | ||
| export * from './instructions'; | ||
| export { StakePoolLayout } from './layouts'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're going to make this one public, might as well do ValidatorStakeInfoLayout and ValidatorListLayout as well.
joncinque
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me (with Joe's question)!
Pull request has been modified.
joncinque
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
|
Merging early since the stake pool tests passed |
#### Problem solana-labs#7324 exposed some needed types, but it's not released yet. #### Summary of changes Bump the patch version to release a new version.
#### Problem #7324 exposed some needed types, but it's not released yet. #### Summary of changes Bump the patch version to release a new version.
Necessary to load individual StakePools by their pubkey (possibly across different stake pool program deployments) and decode.